#include <gfx/dx12/queue.h>

primal::gfx::GraphicsQueue::GraphicsQueue(ID3D12DeviceN* d, D3D12_COMMAND_LIST_TYPE t) :
	ComPtr<ID3D12CommandQueue>{}
{
	D3D12_COMMAND_QUEUE_DESC desc{};
	desc.Type = t;
	DXASSERT(d->CreateCommandQueue(&desc, IID_PPV_ARGS(this->GetAddressOf())));
	//DXASSERT(d->CreateFence(fence_value, D3D12_FENCE_FLAG_NONE, IIDPPV(fence)));
}